package com.centriole.service.workflow.dao;

import java.util.List;

import com.centriole.service.workflow.entity.InstanceHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
public interface InstanceHistoryMapper {

	public void insert(InstanceHistory instanceHistory);
	public List<InstanceHistory> selectByInstanceId(String instanceId);
	public List<InstanceHistory> selectByInstanceIdOderByDesc(String instanceId);
	int deleteByInstanceIdAndTaskName(@Param("instanceId") String instanceId, @Param("taskName") String taskName);
}
